/*
 * @Description: Dog类的测试
 * 
 * @Author: rendc
 * 
 * @Date: 2025-03-05 09:31:20
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-03-05 11:03:04
 */

public class Test02 {
  public static void main(String[] args) {
    // 创建Dog类对象
    Dog d1 = new Dog();
    d1.setAge(1);
    d1.setColor("黑白");
    d1.setName("二哈");
    d1.show();
    System.out.println(d1.getClass());
    System.out.println(d1.toString());
    d1.showAge();
  }

}